package com.xo.common.pojo.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(description = "创建商品参数", requiredMode = Schema.RequiredMode.REQUIRED)
public class PmsProductCreateReqDto {

    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productName; // 商品名称

    @Schema(description = "商品图片", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productPic; // 商品图片

    @Schema(description = "商品价格", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal productPrice; // 商品价格

    @Schema(description = "品牌ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer brandId; // 品牌id

    @Schema(description = "分类ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer categoryId; // 分类id

    @Schema(description = "商品编码（69码）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productSn; // 商品编码

    @Schema(description = "排序，值越大越靠前", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer sortOrder; // 排序

}
